From: Juergen Gross Date: Fri, 20 Apr 2018 15:47:55 +0000 (+0200) Subject: shim: don't let build modify shim.config X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~161 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=8717e7417cebeae162fd61ea4cbdcdd422748f08;p=xen.git shim: don't let build modify shim.config Currently building the shim will modify shim.config in case some config option was added or modified in the hypervisor. Avoid that by copying shim.config to an intermediate file instead. Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich Acked-by: Wei Liu --- diff --git a/tools/firmware/xen-dir/Makefile b/tools/firmware/xen-dir/Makefile index a7e69ae777..84648c3faf 100644 --- a/tools/firmware/xen-dir/Makefile +++ b/tools/firmware/xen-dir/Makefile @@ -41,16 +41,12 @@ linkfarm.stamp: $(DEP_DIRS) $(DEP_FILES) FORCE $(D): linkfarm.stamp $(MAKE) -C $(D)/xen distclean -.PHONY: shim-%config -shim-%config: $(D) FORCE - $(MAKE) -C $(D)/xen $*config \ - XEN_CONFIG_EXPERT=y \ - KCONFIG_CONFIG=$(CURDIR)/shim.config - -xen-shim: $(D) shim-olddefconfig - $(MAKE) -C $(D)/xen build \ - XEN_CONFIG_EXPERT=y \ - KCONFIG_CONFIG=$(CURDIR)/shim.config +$(D)/xen/.config: shim.config $(D) + cp $< $@ + $(MAKE) -C $(@D) olddefconfig XEN_CONFIG_EXPERT=y + +xen-shim: $(D)/xen/.config + $(MAKE) -C $(